﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tetris
{
    public class SquareBlock : Blocks
    {
        public override List<PieceOfBlocks> Position1(int x, int y)
        {
            base.Position1(5,10);
            PieceOfBlocks piece1 = new PieceOfBlocks(X, Y);
            PieceOfBlocks piece2 = new PieceOfBlocks(piece1.X + 1, piece1.Y);
            PieceOfBlocks piece3 = new PieceOfBlocks(piece1.X + 1, piece1.Y + 1);
            PieceOfBlocks piece4 = new PieceOfBlocks(piece1.X, piece1.Y + 1);
            List<PieceOfBlocks> square = new List<PieceOfBlocks>();
            square.Add(piece1);
            square.Add(piece2);
            square.Add(piece3);
            square.Add(piece4);
            return square;
        }

    }
}
